/* ===== TWELVE MAGNETISM - MAIN MODAL ===== */
.twelve-magnetism-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffebc4 0%, #ffebc4ad 100%);
  background-size: 400% 400%;
  animation: twelveGradientShift 20s ease infinite;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.twelve-magnetism-modal.active {
  display: flex;
}

@keyframes twelveGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.twelve-magnetism-container {
  background: var(--primary-bg, #f5f4ed);
  border-radius: 40px;
  padding: 35px;
  max-width: 1400px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25),
    0 15px 40px rgba(255, 198, 47, 0.15),
    inset 0 2px 5px rgba(255, 255, 255, 0.9);
  animation: twelveSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 6px solid;
  border-image: linear-gradient(
      135deg,
      #ff6b35,
      #4ecdc4,
      #ffd93d,
      #95e1d3,
      #a8e6cf
    )
    1;
}

@keyframes twelveSlideUp {
  from {
    transform: translateY(100px) scale(0.85);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
.twelve-magnetism-container::-webkit-scrollbar {
  width: 12px;
}

.twelve-magnetism-container::-webkit-scrollbar-track {
  background: linear-gradient(
    135deg,
    rgba(255, 214, 165, 0.2),
    rgba(202, 255, 191, 0.2)
  );
  border-radius: 10px;
}

.twelve-magnetism-container::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--secondary-bg, #ffc62f) 0%,
    #ffd93d 100%
  );
  border-radius: 10px;
  border: 2px solid white;
}

.twelve-magnetism-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    #ffd93d 0%,
    var(--secondary-bg, #ffc62f) 100%
  );
}

/* ===== CLOSE BUTTON ===== */
.twelve-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-bg);
  color: #1e1e1e;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 3.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-weight: bold;
  border: 4px solid white;
  height: auto;
  width: var(--fs-26-60);
  aspect-ratio: 1 / 1;
  line-height: 1;
  font-size: var(--fs-12-24);
}

.twelve-close-icon {
  display: block;
  line-height: 1;
}

/* ===== HEADER ===== */
.twelve-header {
  text-align: center;
  margin-bottom: 30px;
  animation: twelveBounceIn 0.8s ease-out;
}

@keyframes twelveBounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.twelve-title-wrapper {
  display: inline-block;
  padding: 20px 40px;
  background: linear-gradient(135deg, #ffebc4 0%, #ffebc4ad 100%);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.twelve-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: white;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
}

.twelve-subtitle {
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  color: #ffc62f;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* ===== SCORE BAR ===== */
.twelve-score-bar {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.twelve-score-item {
  background: white;
  border-radius: 25px;
  padding: 20px 35px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 3px solid #e8e8e8;
  transition: all 0.3s ease;
  min-width: 160px;
}

.twelve-score-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.twelve-score-item.twelve-total {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border-color: #ff8c00;
  animation: twelvePulseGlow 2s infinite;
}

@keyframes twelvePulseGlow {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  }

  50% {
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
  }
}

.twelve-score-icon {
  width: 40px;
  height: 40px;
  color: #ffc62f;
}

.twelve-total .twelve-score-icon {
  color: #ffc62f;
}

.twelve-score-label {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #666;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.twelve-total .twelve-score-label {
  color: white;
}

.twelve-score-value {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #ffc62f;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(255, 198, 47, 0.2);
}

.twelve-total .twelve-score-value {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== NAVIGATION TABS ===== */
.twelve-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.twelve-tab-btn {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: var(--font-color, #1e1e1e);
  border: 3px solid #d0d5dd;
  padding: 15px 25px;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.twelve-tab-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.twelve-tab-btn.active {
  background: linear-gradient(
    135deg,
    var(--secondary-bg, #ffc62f) 0%,
    #ffd93d 100%
  );
  color: var(--font-color, #1e1e1e);
  border-color: #ffd93d;
  box-shadow: 0 8px 25px rgba(255, 198, 47, 0.4);
  transform: translateY(-2px) scale(1.05);
}

/* ===== CONTENT SECTIONS ===== */
.twelve-content-section {
  display: none;
  animation: twelveFadeSlide 0.5s ease-out;
}

.twelve-content-section.active {
  display: block;
}

@keyframes twelveFadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.twelve-learn-card {
  background: white;
  border-radius: 35px;
  padding: var(--fs-16-32);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border: 4px solid #e8ecf1;
}

/* ===== SECTION HEADER ===== */
.twelve-section-header {
  text-align: center;
  margin-bottom: 35px;
}

.twelve-section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  background: linear-gradient(135deg, #ff6b35 0%, #4ecdc4 50%, #ffd93d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 12px;
}

.twelve-section-subtitle {
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  color: #ff6b35;
  font-weight: 700;
}

/* ===== CONTENT CARD ===== */
.twelve-content-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 25px;
  padding: var(--fs-12-24);
  margin-bottom: 20px;
}

.twelve-text {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ===== FUN BOX ===== */
.twelve-fun-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-radius: 20px;
  padding: 20px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 3px solid #ffd93d;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.twelve-fun-icon {
  font-size: 3rem;
  animation: twelveSpin 3s linear infinite;
}

@keyframes twelveSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.twelve-fun-box strong {
  color: #d68910;
  font-size: 1.2rem;
}

/* ===== FEATURES GRID ===== */
.twelve-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.twelve-feature-card {
  background: var(--secondary-bg, #ffc62f);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.twelve-feature-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: #ff6b35;
}

.twelve-feature-emoji {
  font-size: 3rem;
  margin-bottom: 15px;
}

.twelve-feature-card p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #2d3436;
  line-height: 1.6;
  font-weight: 600;
}

/* ===== INTERACTIVE DEMO ===== */
.twelve-interactive-demo {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 25px;
  padding: 30px;
  margin: 30px 0;
  border: 3px solid #74b9ff;
}

.twelve-magnet-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 25px 0;
}

.twelve-demo-magnet {
  width: 150px;
  height: 75px;
  background: linear-gradient(90deg, #ff4757 50%, #3742fa 50%);
  border-radius: 12px;
  display: flex;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.twelve-demo-magnet:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.twelve-magnet-pole {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: white;
}

.twelve-north-pole {
  background: rgba(255, 71, 87, 0.3);
}

.twelve-south-pole {
  background: rgba(55, 66, 250, 0.3);
}

.twelve-demo-objects {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.twelve-demo-object {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.twelve-demo-object.twelve-magnetic {
  background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
  border: 3px solid #27ae60;
}

.twelve-demo-object.twelve-non-magnetic {
  background: linear-gradient(135deg, #ffa0a0 0%, #ffcccb 100%);
  border: 3px solid #e74c3c;
}

.twelve-demo-object:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.twelve-demo-hint {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #0984e3;
  font-weight: 700;
  margin-top: 15px;
}

/* ===== SHAKE ANIMATION ===== */
@keyframes twelve-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

/* ===== POLES DISPLAY ===== */
.twelve-poles-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.twelve-pole-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 4px solid;
  transition: all 0.3s ease;
}

.twelve-north-card {
  border-color: #ff4757;
}

.twelve-south-card {
  border-color: #3742fa;
}

.twelve-pole-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.twelve-pole-label {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 15px;
  color: #2d3436;
}

.twelve-pole-color {
  width: 100%;
  height: 80px;
  border-radius: 15px;
  margin: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* ===== ATTRACTION & REPULSION DEMO ===== */
.twelve-attraction-demo,
.twelve-repulsion-demo {
  margin: 30px 0;
  padding: var(--fs-12-24);

  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.twelve-demo-area {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  padding: var(--fs-12-24);
  margin: 20px 0;
}

.twelve-interactive-instruction {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #2d3436;
  border: 2px dashed #74b9ff;
}

.twelve-interactive-instruction strong {
  color: #0984e3;
}

.twelve-magnet-container {
  position: relative;
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border-radius: 15px;
  margin: 20px 0;
  overflow: hidden;
}

.twelve-draggable-magnet {
  position: absolute;
  width: 120px;
  height: 60px;
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.3s ease;
  z-index: 10;
  border-radius: 10px;
}

.twelve-draggable-magnet.twelve-dragging {
  cursor: grabbing;
  z-index: 100;
}

.twelve-static-magnet {
  position: absolute;
  width: 120px;
  height: 60px;
  left: 50%;
  border-radius: 10px;
  top: 50%;
  transform: translate(-50%, -50%);
}

.twelve-magnet-ns {
  background: linear-gradient(90deg, #ff4757 50%, #3742fa 50%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.twelve-magnet-sn {
  background: linear-gradient(90deg, #3742fa 50%, #ff4757 50%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.twelve-pole-text {
  position: absolute;
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.twelve-pole-text.twelve-north {
  left: 15px;
}

.twelve-pole-text.twelve-south {
  right: 15px;
}

.twelve-status-message {
  text-align: center;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  margin-top: 15px;
  padding: 12px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ===== REMEMBER BOX ===== */
.twelve-remember-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-radius: 20px;
  padding: 25px;
  margin: 30px 0;
  border: 3px solid #ffd93d;
}

.twelve-remember-box h4 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: #d68910;
  margin-bottom: 15px;
  font-weight: 900;
}

.twelve-remember-box ul {
  list-style: none;
  padding: 0;
}

.twelve-remember-box li {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #2d3436;
  margin: 12px 0;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
  font-weight: 600;
}

/* ===== MATERIALS COMPARISON ===== */
.twelve-materials-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.twelve-material-section {
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.twelve-magnetic-section {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 4px solid #28a745;
}

.twelve-non-magnetic-section {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 4px solid #dc3545;
}

.twelve-material-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 10px;
}

.twelve-magnetic-section .twelve-material-title {
  color: #155724;
}

.twelve-non-magnetic-section .twelve-material-title {
  color: #721c24;
}

.twelve-material-desc {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #555;
  margin-bottom: 20px;
  font-weight: 600;
}

.twelve-material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.twelve-material-item {
  background: white;
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.twelve-magnetic-item {
  border-color: #28a745;
}

.twelve-non-magnetic-item {
  border-color: #dc3545;
}

.twelve-material-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.twelve-material-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}

.twelve-material-name {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #2d3436;
  font-weight: 700;
}

/* ===== TYPES SECTION ===== */
.twelve-types-section {
  margin: 40px 0;
}

.twelve-magnet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 25px 0;
}

.twelve-magnet-type-card {
  background: var(--secondary-bg, #ffc62f);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  border: 4px solid transparent;
}

.twelve-magnet-type-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  border-color: #ff6b35;
}

.twelve-magnet-type-image {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  background: white;
  border-radius: 15px;
  padding: 15px;
}

.twelve-type-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.twelve-magnet-type-card h5 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #2d3436;
  margin-bottom: 10px;
  font-weight: 900;
}

.twelve-magnet-type-card p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #555;
  line-height: 1.6;
  font-weight: 600;
}

/* ===== MAGNETIC FIELD SECTION ===== */
.twelve-field-demo {
  margin: 30px 0;
}

.twelve-field-canvas-container {
  background: #000;
  border-radius: 25px;
  padding: 30px;
  margin: 25px 0;
  border: 4px solid #74b9ff;
}

.twelve-field-canvas {
  display: block;
  margin: 0 auto 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  cursor: grab;
  touch-action: none;
}

.twelve-field-canvas:active {
  cursor: grabbing;
}

.twelve-field-controls {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.twelve-field-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}

.twelve-charge-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
}

.twelve-charge-indicator.twelve-positive {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
}

.twelve-charge-indicator.twelve-negative {
  background: linear-gradient(135deg, #74b9ff 0%, #3742fa 100%);
}

.twelve-field-instruction {
  text-align: center;
  color: white;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

/* ===== FIELD FACTS ===== */
.twelve-field-facts {
  margin: 30px 0;
}

.twelve-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.twelve-fact-card {
  background: var(--secondary-bg, #ffc62f);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.twelve-fact-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: #ff6b35;
}

.twelve-fact-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.twelve-fact-card p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #2d3436;
  line-height: 1.6;
  font-weight: 600;
}

/* ===== EARTH MAGNET ===== */
.twelve-earth-magnet {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 25px;
  padding: 30px;
  margin: 30px 0;
  border: 3px solid #74b9ff;
}

.twelve-earth-content {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.twelve-earth-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.twelve-earth-text {
  flex: 1;
  min-width: 300px;
}

.twelve-compass-info {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.twelve-compass-emoji {
  font-size: 3rem;
}

.twelve-compass-info p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #2d3436;
  line-height: 1.6;
  font-weight: 600;
}

/* ===== APPLICATIONS ===== */
.twelve-applications {
  margin: 30px 0;
}

.twelve-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.twelve-app-card {
  background: var(--secondary-bg, #ffc62f);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.twelve-app-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: #ff6b35;
}

.twelve-app-emoji {
  font-size: 4rem;
  margin-bottom: 15px;
}

.twelve-app-card h5 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #2d3436;
  margin-bottom: 10px;
  font-weight: 900;
}

.twelve-app-card p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #555;
  line-height: 1.6;
  font-weight: 600;
}

/* ===== GAME SECTION ===== */
.twelve-game-info {
  margin: 25px 0;
}

.twelve-game-stats {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.twelve-stat-badge {
  background: linear-gradient(
    135deg,
    var(--secondary-bg, #ffc62f) 0%,
    #ffd93d 100%
  );
  padding: 15px 30px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 3px solid #fff;
}

.twelve-stat-label {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #2d3436;
  font-weight: 700;
}

.twelve-stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #1e1e1e;
  font-weight: 900;
}

/* ===== RESULT SCREEN ===== */
.twelve-result-screen {
  display: none;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
  border-radius: 30px;
  margin: 30px 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.twelve-result-screen.active {
  display: block;
  animation: twelveCelebrationPop 0.6s ease;
}

@keyframes twelveCelebrationPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.twelve-result-emoji {
  font-size: 5rem;
  margin: 20px 0;
  animation: twelveBounce 1s infinite;
}

@keyframes twelveBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.twelve-result-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #27ae60;
  margin-bottom: 15px;
  font-weight: 900;
}

.twelve-result-text {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #2d3436;
  margin-bottom: 25px;
  font-weight: 700;
}

.twelve-result-stats {
  background: white;
  padding: 25px;
  border-radius: 20px;
  margin: 25px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.twelve-result-stats-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  color: #667eea;
  margin-bottom: 20px;
  font-weight: 900;
}

.twelve-result-stat-item {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #2d3436;
  margin: 12px 0;
  font-weight: 600;
}

.twelve-restart-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 18px 50px;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  border-radius: 30px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  border: 3px solid white;
}

.twelve-restart-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

/* ===== GAME AREA ===== */
.twelve-game-area {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 25px;
  margin: 30px 0;
}

.twelve-objects-pool {
  background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
  border-radius: 20px;
  padding: var(--fs-12-24);
  min-height: 400px;
  border: 3px solid #636e72;
}

.twelve-pool-title {
  text-align: center;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #2d3436;
  margin-bottom: 20px;
  font-weight: 900;
  background: white;
  padding: 12px;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.twelve-draggable-objects {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.twelve-game-object {
  background: white;
  border: 3px solid #74b9ff;
  border-radius: 15px;
  padding: 15px;
  cursor: grab;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.twelve-game-object:active {
  cursor: grabbing;
}

.twelve-game-object.twelve-dragging {
  opacity: 0.5;
  transform: scale(0.9);
}

.twelve-game-object:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.twelve-object-emoji {
  font-size: 2.5rem;
}

.twelve-sorting-columns {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.twelve-drop-column {
  flex: 1;
  border-radius: 20px;
  padding: 25px;
  min-height: 300px;
  border: 4px dashed #636e72;
  transition: all 0.3s;
  overflow-y: auto;
}

.twelve-magnetic-column {
  background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
  border-color: #27ae60;
}

.twelve-non-magnetic-column {
  background: linear-gradient(135deg, #ffa0a0 0%, #ffcccb 100%);
  border-color: #e74c3c;
}

.twelve-drop-column.twelve-drag-over {
  border-width: 6px;
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(9, 132, 227, 0.3);
}

.twelve-column-header {
  text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.twelve-magnetic-column .twelve-column-header {
  color: #27ae60;
}

.twelve-non-magnetic-column .twelve-column-header {
  color: #e74c3c;
}

.twelve-dropped-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.twelve-instructions-box {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-radius: 20px;
  padding: var(--fs-12-24);
  border: 3px solid #ffd93d;
}

.twelve-instructions-content {
  padding: 15px;
  line-height: 2;
}

.twelve-instructions-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #2d3436;
  margin: 8px 0;
  font-weight: 700;
}

/* ===== NEXT BUTTON ===== */
.twelve-next-btn {
  background: linear-gradient(135deg, #ff6b35 0%, #e74c3c 100%);
  color: white;
  border: none;
  padding: 20px 50px;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  border-radius: 35px;
  cursor: pointer;
  font-weight: 900;
  margin-top: 35px;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
  border: 3px solid white;
}

.twelve-next-btn:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.twelve-next-btn:active {
  transform: translateY(-5px) scale(1.01);
}

.twelve-btn-text {
  flex: 1;
  text-align: center;
}

.twelve-btn-arrow {
  width: 30px;
  height: 30px;
}

/* ===== CONFETTI ===== */
.twelve-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30000;
  overflow: hidden;
  display: none;
}

.twelve-confetti-container.active {
  display: block;
}

.twelve-confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ff6b35;
  animation: twelveConfettiFall 3s linear forwards;
}

.twelve-score-item.twelve-total .twelve-score-icon {
  color: #1e1e1e;
}

@keyframes twelveConfettiFall {
  0% {
    top: -10%;
    transform: translateX(0) rotateZ(0deg);
    opacity: 1;
  }

  100% {
    top: 110%;
    transform: translateX(100px) rotateZ(720deg);
    opacity: 0;
  }
}

/* ===== FADE IN OUT ANIMATION ===== */
@keyframes twelveFadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .twelve-game-area {
    grid-template-columns: 1fr;
  }

  .twelve-sorting-columns {
    flex-direction: row;
  }
}

@media (max-width: 992px) {
  .twelve-magnetism-container {
    padding: 30px;
  }

  /* .twelve-learn-card { */
  /* padding: 30px; */
  /* } */

  .twelve-earth-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .twelve-draggable-objects {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
  }
  .twelve-objects-pool {
    min-height: max-content;
  }
  .twelve-game-object > span:last-child {
    display: none;
  }
  .twelve-game-object {
    padding: var(--fs-10-16);
  }
  .twelve-draggable-objects {
    gap: 5px;
  }
  .twelve-magnetism-container {
    padding: 25px;
    border-radius: 30px;
  }

  .twelve-nav-tabs {
    gap: 10px;
  }

  .twelve-tab-btn {
    padding: 12px 20px;
  }

  .twelve-sorting-columns {
    flex-direction: column;
  }

  .twelve-features-grid,
  .twelve-materials-comparison,
  .twelve-magnet-types-grid,
  .twelve-facts-grid,
  .twelve-app-grid {
    grid-template-columns: 1fr;
  }

  .twelve-field-canvas {
    width: 300px;
    height: 300px;
  }

  .twelve-magnet-container {
    height: 200px;
  }

  .twelve-draggable-magnet,
  .twelve-static-magnet {
    width: 100px;
    height: 50px;
  }

  .twelve-pole-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .twelve-content-card{
    padding: 0px;
  }
  .twelve-draggable-magnet,
  .twelve-static-magnet {
    width: 60px;
    height: 30px;
  }

  .twelve-magnetism-modal {
    padding: 10px;
  }

  .twelve-magnetism-container {
    padding: 20px;
    border-radius: 25px;
    border-width: 4px;
  }

  .twelve-score-bar {
    gap: 15px;
  }

  .twelve-score-item {
    padding: 15px 25px;
    min-width: 140px;
  }

  .twelve-nav-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .twelve-tab-btn {
    width: 100%;
  }

  /* .twelve-learn-card { */
  /* padding: 25px; */
  /* } */

  .twelve-field-canvas {
    width: 250px;
    height: 250px;
  }

  .twelve-demo-object {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.twelve-material-emoji img,
.twelve-object-emoji img,
.twelve-demo-object img,
.twelve-app-emoji img,
.twelve-compass-emoji img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.twelve-demo-object:hover img,
.twelve-material-item:hover img {
  transform: scale(1.1);
}
